﻿<UserControl x:Class="IconEditorXBAP.IconElements.BasicShape"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="4"/>
            <RowDefinition/>
            <RowDefinition Height="4"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="4"/>
            <ColumnDefinition/>
            <ColumnDefinition Width="4"/>
        </Grid.ColumnDefinitions>

        <Thumb x:Name="LeftBorder"   Cursor="SizeWE" Grid.Row="1" Width="4" 
               DragDelta="ResizeThumb_DragDelta" 
               HorizontalAlignment="Left" VerticalAlignment="Stretch" Panel.ZIndex="2"/>
        <Thumb x:Name="TopBorder"     Cursor="SizeNS" Grid.Column="1" Height="4"
               DragDelta="ResizeThumb_DragDelta" 
               HorizontalAlignment="Stretch" VerticalAlignment="Top" Panel.ZIndex="2"/>
        <Thumb x:Name="RightBorder"    Cursor="SizeWE" Grid.Column="2" Grid.Row="1" Width="4"
               DragDelta="ResizeThumb_DragDelta" 
               HorizontalAlignment="Right" VerticalAlignment="Stretch" Panel.ZIndex="2"/>
        <Thumb x:Name="BottomBorder"   Cursor="SizeNS" Grid.Row="2" Grid.Column="1" Height="4"
               DragDelta="ResizeThumb_DragDelta" 
               HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Panel.ZIndex="2"/>

        <Thumb x:Name="LeftTopBorder"   Cursor="SizeNWSE" Width="4" Height="4"
               DragDelta="ResizeThumb_DragDelta" 
               HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="2"/>
        <Thumb x:Name="RightTopBorder"     Cursor="SizeNESW" Grid.Column="2" Width="4" Height="4"
               DragDelta="ResizeThumb_DragDelta" 
               HorizontalAlignment="Right" VerticalAlignment="Top" Panel.ZIndex="2"/>
        <Thumb x:Name="LeftBottomBorder"   Cursor="SizeNESW" Grid.Row="2" Width="4" Height="4"
               DragDelta="ResizeThumb_DragDelta" 
               HorizontalAlignment="Left" VerticalAlignment="Bottom" Panel.ZIndex="2"/>
        <Thumb x:Name="RightBottomBorder"    Cursor="SizeNWSE" Grid.Column="2" Grid.Row="2" Width="4" Height="4"
               DragDelta="ResizeThumb_DragDelta" 
               HorizontalAlignment="Right" VerticalAlignment="Bottom" Panel.ZIndex="2"/>
    </Grid>
</UserControl>
